﻿using System;

class PrintSUmOfNNumbers
{
    static void Main()
    {
        int numberN;

        Console.WriteLine("Type a number N:");
        bool isNValid = int.TryParse(Console.ReadLine(), out numberN);
        bool isInputCorrect = true;
        ;

        if (isNValid)
        {
            int sum = 0;
            int number = 0;
            for (int i = 0; i < numberN; i++)
            {
                bool isNumberValid = int.TryParse(Console.ReadLine(), out number);

                if (isNumberValid)
                {
                    sum += number;
                }
                else
                {
                    Console.WriteLine("Your input isn`t OK!!!");
                    isInputCorrect = false;
                    break;
                }
            }

            if (isInputCorrect)
            {
                Console.WriteLine("Your sum is {0}", sum);
            }
        }
        else
        {
            Console.WriteLine("Your input isn`t OK!!!");
        }
    }
}